<?php

namespace Plugin\GdRandomProducts\Admin\View\DesignBuilders;

use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class RandomProducts extends Component
{
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return View
     */
    public function render(): View
    {
        $data['register'] = [
            'code'      => 'random_products',
            'sort'      => 0,
            'name'      => trans('GdRandomProducts::common.random_products'),
            'icon'      => plugin_asset('GdRandomProducts', 'image/random_products_icon.png'),
            'view_path' => 'GdRandomProducts::shop/design_module_random_products',
        ];

        return view('GdRandomProducts::admin/design_module_random_products', $data);
    }
}
